package com.fimuz.mqmeet.api.common.service.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fimuz.mqmeet.api.common.dao.CommonDao;
import com.fimuz.mqmeet.api.common.service.CommonService;
import com.fimuz.mqmeet.api.common.service.model.ListBuildingregionSpModel;
import com.fimuz.mqmeet.api.common.service.model.ListBuildingregionSrModel;
import com.fosun.spr.core.base.CoBaseService;

@Transactional(rollbackFor = { RuntimeException.class, Exception.class })
@Service
public class CommonServiceImpl extends CoBaseService implements CommonService {
	@Autowired
	private CommonDao commonDao;
	//@Resource
	//private CommonMapper commonMapper;
 
	@Override
	public ListBuildingregionSrModel listBuildingregion(ListBuildingregionSpModel spModel) {
		ListBuildingregionSrModel srModel = new ListBuildingregionSrModel();
		srModel.setDatas(commonDao.listBuildingregion(spModel));
		return srModel;
	}	
	
}
